package cn.jee;

import cn.jee.dao.StuDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@EnableCaching
@EnableJpaRepositories
public class Jee2025LessonSpringboot58Application implements CommandLineRunner {
  @Autowired
  StuDao dao;

  @Override
  public void run(String... args) throws Exception {
//    dao.tx();
  }

  public static void main(String[] args) {
    SpringApplication.run(Jee2025LessonSpringboot58Application.class, args);

  }

}
